/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Canadian Latin Indian</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14965 (C-0-T14914-S14915-S14916-S14965-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceCanadianLatinIndian()
 * @model extendedMetaData="name='RaceCanadianLatinIndian'"
 * @generated
 */
public enum RaceCanadianLatinIndian implements Enumerator {
	/**
	 * The '<em><b>10686</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10686_VALUE
	 * @generated
	 * @ordered
	 */
	_10686(0, "_10686", "1068-6"),

	/**
	 * The '<em><b>10694</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10694_VALUE
	 * @generated
	 * @ordered
	 */
	_10694(1, "_10694", "1069-4"),

	/**
	 * The '<em><b>10702</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10702_VALUE
	 * @generated
	 * @ordered
	 */
	_10702(2, "_10702", "1070-2"),

	/**
	 * The '<em><b>10710</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10710_VALUE
	 * @generated
	 * @ordered
	 */
	_10710(3, "_10710", "1071-0"),

	/**
	 * The '<em><b>10728</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10728_VALUE
	 * @generated
	 * @ordered
	 */
	_10728(4, "_10728", "1072-8"),

	/**
	 * The '<em><b>10736</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10736_VALUE
	 * @generated
	 * @ordered
	 */
	_10736(5, "_10736", "1073-6");

	/**
	 * The '<em><b>10686</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10686</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10686
	 * @model literal="1068-6"
	 * @generated
	 * @ordered
	 */
	public static final int _10686_VALUE = 0;

	/**
	 * The '<em><b>10694</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10694</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10694
	 * @model literal="1069-4"
	 * @generated
	 * @ordered
	 */
	public static final int _10694_VALUE = 1;

	/**
	 * The '<em><b>10702</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10702</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10702
	 * @model literal="1070-2"
	 * @generated
	 * @ordered
	 */
	public static final int _10702_VALUE = 2;

	/**
	 * The '<em><b>10710</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10710</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10710
	 * @model literal="1071-0"
	 * @generated
	 * @ordered
	 */
	public static final int _10710_VALUE = 3;

	/**
	 * The '<em><b>10728</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10728</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10728
	 * @model literal="1072-8"
	 * @generated
	 * @ordered
	 */
	public static final int _10728_VALUE = 4;

	/**
	 * The '<em><b>10736</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10736</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10736
	 * @model literal="1073-6"
	 * @generated
	 * @ordered
	 */
	public static final int _10736_VALUE = 5;

	/**
	 * An array of all the '<em><b>Race Canadian Latin Indian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceCanadianLatinIndian[] VALUES_ARRAY =
		new RaceCanadianLatinIndian[] {
			_10686,
			_10694,
			_10702,
			_10710,
			_10728,
			_10736,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Canadian Latin Indian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceCanadianLatinIndian> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Canadian Latin Indian</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceCanadianLatinIndian get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceCanadianLatinIndian result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Canadian Latin Indian</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceCanadianLatinIndian getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceCanadianLatinIndian result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Canadian Latin Indian</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceCanadianLatinIndian get(int value) {
		switch (value) {
			case _10686_VALUE: return _10686;
			case _10694_VALUE: return _10694;
			case _10702_VALUE: return _10702;
			case _10710_VALUE: return _10710;
			case _10728_VALUE: return _10728;
			case _10736_VALUE: return _10736;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceCanadianLatinIndian(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceCanadianLatinIndian
